package com.tiamo.traders.service.serviceImpl;

import com.tiamo.traders.entity.LeaveWord;
import com.tiamo.traders.mapper.LeaveMapper;
import com.tiamo.traders.service.LeaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LeaveServiceImpl implements LeaveService {
    @Autowired
    LeaveMapper leaveMapper;

    @Override
    public List<LeaveWord> findAll() {
        return leaveMapper.findAll();
    }

    @Override
    public Integer leaveAdd(LeaveWord leave) {
        return leaveMapper.leaveAdd(leave);
    }

    @Override
    public Integer leaveDelete(LeaveWord leave) {
        return leaveMapper.leaveDelete(leave);
    }

    @Override
    public Integer leaveUpdate(LeaveWord leave) {
        return leaveMapper.leaveUpdate(leave);
    }

    @Override
    public LeaveWord findById(LeaveWord leaveWord) {
        return leaveMapper.findById(leaveWord);
    }
}
